import os
import shutil


x = os.walk('.\\C1DataAnalysis')

while True:

    try:

        info = next(x)

    except StopIteration:

        print('__pycache__文件夹删除完毕')

        break

    if '__pycache__' in info[1]:

        path = os.path.join(info[0],'__pycache__')

        shutil.rmtree(path)

    
